<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmLocalidadABM.aspx.vb" Inherits="TGB.FrmLocalidadABM" 
    title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="DIV1" style="width: 100%; color: #000066; height: 18px; background-color: transparent; text-align: left" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Localidades" Font-Underline="False" Width="104px" Height="1px"></asp:Label></div><hr /> 
    <div style="width: 100%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 680px; height: 80px; text-align: center;" >
        <tr>
            <td align="right" style="width: 7%; height: 14px;">
                Provincia</td>
            <td style="width: 21%; height: 14px;" align="left" >
                <asp:DropDownList ID="CboProvincias" runat="server" CssClass="CampoCbo" Width="113px" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">TODAS</asp:ListItem>
                </asp:DropDownList></td>

        </tr>
        <tr>
            <td align="right" style="width: 7%; height: 22px;">
                Nombre de Localidad:</td>
            <td style="width: 21%; height: 22px;" align="left" >
                <asp:TextBox ID="TxtLocalidad" runat="server" CssClass="campotxt" Width="304px" MaxLength="100"></asp:TextBox>
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 7%; height: 19px;">
                Codigo Postal</td>
            <td style="width: 21%; height: 19px;" align="left" >
                <asp:TextBox ID="TxtCodigoPostal" runat="server" CssClass="campotxt" Width="120px" MaxLength="5"></asp:TextBox>&nbsp;
                <asp:HiddenField ID="HFId" runat="server" Value='<%# Bind("IdTalonario") %>' />
            </td>
        </tr>
                    <tr>
                <td align="center" colspan="2" style="height: 20px" >
                    <asp:LinkButton ID="LnkGuardar" runat="server" CssClass="BotonLink">Guardar</asp:LinkButton>
                    <asp:LinkButton ID="LnkEliminar" runat="server" CssClass="BotonLink">Eliminar</asp:LinkButton>
                    <asp:LinkButton ID="LnkBuscar" runat="server" CssClass="BotonLink">Buscar</asp:LinkButton>
                    <asp:LinkButton ID="LnkCancelar" runat="server" CssClass="BotonLink">Cancelar</asp:LinkButton>
                    <asp:LinkButton ID="LnkModificar" runat="server" CssClass="BotonLink">Modificar</asp:LinkButton>
               </td>
            </tr>
        
            </table>
        <asp:Label ID="LblError" runat="server" Font-Bold="True" ForeColor="#C00000" CssClass="LabelError"></asp:Label></div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridLocalidades" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan"
            BorderWidth="1px" CellPadding="2" CssClass="tabla"
            ForeColor="Black" GridLines="None" PageSize="25" Style="width: 100%; vertical-align: middle; text-align: center;" Width="812px" CaptionAlign="Right">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="Tan" />
            <Columns>
                <asp:TemplateField HeaderText="CodigoLocalidad">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CodigoLocalidad") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LnkVer" runat="server" CommandName="Select">Ver</asp:LinkButton>&nbsp;
                    </ItemTemplate>
                    <HeaderTemplate>
                        <asp:HiddenField ID="HiddenField1" runat="server" />
                    </HeaderTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nombre">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Nombre") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblNombre" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label>
                        <asp:HiddenField ID="HdLocalidades" runat="server" Value='<%# bind("CodigoLocalidad") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="CP">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CodigoPostal") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblCodigoPostal" runat="server" Text='<%# Bind("CodigoPostal") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Provincia">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("CodigoProv") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblProvincia" runat="server" Text='<%# Bind("CodigoProv") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <PagerStyle BackColor="Tan" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
        </asp:GridView>
</asp:Content>
